package com.bicon.botu.mall.order.processor.fallback;

import com.bicon.botu.core.base.common.Constants;
import com.bicon.botu.core.base.common.entity.BaseResult;
import com.bicon.botu.mall.order.processor.handler.BaseRpc;
import org.springframework.stereotype.Component;

/**
 * 系统设置
 *
 * @author jwj
 * @date 2018/6/14 9:01
 */
@Component
public class BaseFallback implements BaseRpc {
    @Override
    public BaseResult calcFreight(String productJson, String addressId) {
        return new BaseResult(Constants.RESPONSE_CODE_404, Constants.RESPONSE_MESSAGE_404);
    }

    /**
     * 根据code查询订单的相关配置
     *
     * @param dictionaryCode 字典code
     * @return
     */
    @Override
    public BaseResult getOderConfigValue(String dictionaryCode) {
        return new BaseResult(Constants.RESPONSE_CODE_404, Constants.RESPONSE_MESSAGE_404);
    }
}
